package top.scsoul.boot.entity;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * (SysUser)实体类
 *
 * @author 曹波涛
 * @since 2021-06-10
 */
public class SysUser implements Serializable {
    private static final long serialVersionUID = -36124098929384196L;

    private Integer userId;
    @NotEmpty(message = "登录名不能为空")
    private String userCode;
    @NotEmpty(message = "用户名不能为空")
    private String userName;
    @NotEmpty(message = "密码不能为空")
    private String userPassword;
    @NotEmpty(message = "状态不能为空")
    private String userState;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserState() {
        return userState;
    }

    public void setUserState(String userState) {
        this.userState = userState;
    }

    @Override
    public String toString() {
        return "SysUser{" +
                "userId=" + userId +
                ", userCode='" + userCode + '\'' +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userState='" + userState + '\'' +
                '}';
    }
}